<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%@page import="com.gxl.Entity.StudentUser"%>
<%@page import="java.util.List"%>


<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<%
	 List<StudentUser> t= new ArrayList<StudentUser>();
     t =(List<StudentUser>)request.getSession().getAttribute("allstudent");  
     %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'manager_3.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>

   <center>
		<h1>学生信息</h1>
		<table border="1">
			<tr>
				<th>编号</th>
				<th>帐号</th>
				<th>姓名</th>
				<th>密码</th>
				<th>实习状态</th>
				<th>分组</th>
				<th>改变分组</th>
			</tr>
			
		<%for(int i=0;i<t.size();i++) {%>
			<tr>
				<td><%= i +1%></td>
				<td><%=t.get(i).getStudentUserNo() %></td>
				<td><%=t.get(i).getStudentUserName() %></td>
				<td><%=t.get(i).getStudentUserPassword() %></td>
				<td>
				<%
				if(t.get(i).getStudentUserState()==null||(t.get(i).getStudentUserState().equals("null")))
				{
				out.print("未实习");
				}
				else
					{
					out.print(t.get(i).getStudentUserState());
					}
					  %>
				</td>
				<td> 
				<%
				if(t.get(i).getStudentUserGroup()==null ||t.get(i).getStudentUserGroup().equals("0"))
				{
				out.print("未分组");
				}
				else
				{out.print(t.get(i).getStudentUserGroup() );
				}
				%>
				</td>
				<td>
				<form action="change_student.action" method="post">
				<input type="hidden" name="sid" value="<%=t.get(i).getStudentUserId()%>">
<<<<<<< HEAD
				<input type="hidden" name="ssb" value="<%=t.get(i).getStudentUserSb() %>">
				<input type="hidden" name="sno" value="<%=t.get(i).getStudentUserNo() %>">
				<input type="hidden" name="sname" value="<%=t.get(i).getStudentUserName()%>">
				<input type="hidden" name="spassword" value="<%=t.get(i).getStudentUserPassword() %>">
				<input type="hidden" name="sstate" value="<%=t.get(i).getStudentUserState()%>">
				
=======
>>>>>>> bcf2400f1f37cc9af755d42c2557f9ec702656e8
				<select name="change" > 
					<option  value ="0">取消其分组</option> 
					<option value="1">1组</option> 
					<option value="2">2组</option> 
					<option value="3">3组</option> 
					<option value="4">4组</option> 
					<option value="5">5组</option> 
				</select> 
				<input type="submit" value ="确定">
				</form>
				</td>
			
			</tr>
		<%} %>
		</table>
  </body>
</html>
